basedir=/usr/local/etc/www/cgi-bin
echo "CHECKING" > /usr/local/etc/.vb6upd
your_ver=`cat $basedir/scripts/version.txt | awk '{print $1}'`
if [ ! -f $basedir/scripts/version.txt ]
then
your_ver="UNKNOWN"
fi
cd /usr/local/etc
wget -q http://hdforall.uphero.com/version.srt -O version.txt
new_ver=`cat /usr/local/etc/version.txt | awk '{print $1}'`
if [ $your_ver != $new_ver ]
then 
echo "UPDATE_AVAILABLE" > /usr/local/etc/.vb6upd
else
echo "NO_UPDATE_AVAILABLE" > /usr/local/etc/.vb6upd
fi
